var jsonList={};
var page = 1;
var rows = 10;
$(function (){
    //获取默认列表
    getList();
})
function  getList() {
    //置顶确认请求数据
    var result = JSON.stringify(jsonList);
    $.ajax({
        url: baseNews + "/api/data/common/user/operation/log?page=" + page + "&rows=" + rows,
        type: "post",
        headers: { 'Content-Type': 'application/json' },
        dataType: "json",
        data: result,
        success: function (res) {
            console.log(result, 666);
            if (res.code == 0) {
                var result = res.data;
                var list = result.list;
                console.log(list, 9999)
                var html = "";
                $("#page").paging({
                    pageNo: page,
                    totalPage: result.totalpage,
                    totalSize: result.totals,
                    callback: function (num) {
                        page = num;
                        getList();
                    }
                })
                $(".u_listy").empty();
                $(list).each(function (index, key) {
                    html +=`<span >
				<em>${key.username}</em>
				<em>${key.operation}</em>
				<em>${key.ip}</em>
				<em>${key.time}</em>
				<em class="user_ri" >${key.content}</em>
			</span >`;
                })
                $(".u_listy").append(html);
            }
        }
    })
}